package com.vueperson.vueperson.entity;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
//@ConfigurationProperties(prefix = "book")
//@JSONType(includes = {"publicationDate"})
@JSONType(ignores = {"publicationDate"})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book {

    private   Integer id;
    private String name;
    private String author;

    private Float price;
//    @JSONField(name = "publicationDate")
    private Date publicationDate;

}
